package edu.cuit.svsp.mapper;

import edu.cuit.svsp.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> findAll();

    List<Category> list();

    boolean lock(Integer id);

    boolean pass(Integer id);

    Integer findName(String name);

    boolean add(Category category);

    boolean update(Category category);

    List<Category> search(String name);
}
